T=20; n=[3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]; a=[170,962,891,162,4,379,250,615,750,570,46,299,415,634,110,564,297,987,256,396,992,424,480,234,264,940,380,265,165,224,640,68,136,933,602,427,184,736,648,894,103,344,851,740,370,622,28,231,822,264,895,250,1000,500,679,469,938,187,564,282];